//公共
import myHeader from "/pages/headerfoot/pages/header.vue"
//表格
import uniForms from "/uni_modules/uni-forms/components/uni-forms/uni-forms.vue";



export default {
	components: {
		myHeader,
		uniForms,
	},
	data() {
		return {
			informationfilling: '团队创建',
			valiFormData: {
				slogan: '',//口号
				number: '',//人数
				name: '',//名称
			},
			//校验规则
			rules: {
				name: {
					rules: [{
						required: true,
						errorMessage: '名称不能为空'
					}]
				},
				slogan: {
					rules: [{
						required: true,
						errorMessage: '口号不能为空'
					}]
				},
				number: {
					rules: [{
						required: true,
						errorMessage: '人数不能为空'
					}]
				},
			},
		}
	},
 
	methods: {
		//提交
		submit(ref) {
			this.$refs[ref].validate().then(res => {
                console.log('sucess',res);
			}).catch(err => {
				console.log('err', err);
			})
		},
	}
}